<div class=" navbar-fixed-top main_top ">
    <span href="#" class="main_top_word "><i class="glyphicon glyphicon-phone-alt"></i> <span>咨询业务：0591-2350 5285</span></span>
    <ul class="main_top_right" ng-show="user==''">
        <li ui-sref="login" >登录</li>
        <span>|</span>
        <li ui-sref="register">注册</li>
    </ul>
    <ul class="main_top_right" ng-show="user!=''">
        <li style="margin-right: 10px">{{user.username}}</li>
        <li ng-click="logout()">退出</li>
    </ul>
</div>
<div class="main_top_2">
    <div class="main_top_logo">
        <img src="image/ESLADS.png">
    </div>
    <nav class="nav" ng-app="nav">
      <ul class="main_right" >
        <li ui-sref="botMenu.homepage" ng-class="{active:nativeId=='#/'}"><a native href="#/"><span >首页</span></a></li>
        <li ui-sref="botMenu.advertisement" ng-class="{active:nativeId=='#/info'}"><a native href="#/info"><span>广告投放</span></a></li>
        <li ui-sref="botMenu.ordercenter"  ng-class="{active:nativeId=='#/news'}"><a native href="#/news"><span>订单中心</span></a></li>
        <li ui-sref="botMenu.advertisecenter" ng-class="{active:nativeId=='#/product'}"><a native href="#/product"><span>广告管理</span></a></li>
        <li ng-class="{active:nativeId=='#/case'}"><a native href="#/case"><span>近期动态</span></a></li>
      </ul>
    </nav>
</div>
<div id="scrollDiv" class="notice market_notice">
    <ul>
        <li><i class="glyphicon glyphicon-bullhorn" style="margin-right: 5px"></i>最新消息！有新用户正在{{order.mAddr}}的{{order.mName}}超市投放广告！</li>
        <li><i class="glyphicon glyphicon-bullhorn" style="margin-right: 5px"></i>福州思飞信息技术有限公司</li>
    </ul>
</div>

<div ui-view class="model_content"></div>


<!--
<style type="text/css">
    *{margin: 0px; padding: 0px;}
    .nav{width:100%; background:#fff; height: 80px;}
    .nav ul{width:600px; margin: 0px auto;}
    .nav ul li{float:left; text-align:center; line-height:80px; list-style: none;}
    .nav ul li a{ height:60px;color:#000; width:80px; display:block; font-weight:bold; font-size:15px; text-decoration: none;}
    .nav ul li a:hover{border-bottom: solid 2px #0e90d2;}
    .nav ul .active a,.nav ul .active a:hover{ color:#f5a61d; font-weight:bold; border-top:2px solid #f5a61d; height:78px; background:#fff;}
</style>
<script>
    var nav = angular.module("nav",[]);
    nav.run(['$rootScope',function($rootScope){
                $rootScope.nativeId=getCurrentNativeId();
                function getCurrentNativeId(){
                    var str = "#/index";
                    var href=window.location.href;
                    var index = href.indexOf("#/");
                    if(index != -1){
                        str = href.substring(index,href.length);
                    }
                    return str;
                }
            }])
            .directive('native',['$rootScope',function($rootScope,$cookies){
                return{
                    restrict:'A',
                    link:function(scope,element,attrs){
                        $(element).click(function(){
                            scope.$apply(function(){
                                $rootScope.nativeId = attrs.href;
                            });
                        });
                    }
                }
            }]);

</script>-->